package demoMod.stsconsole.monsters.exordium;

import demoMod.stsconsole.cards.status.Dazed;
import demoMod.stsconsole.dungeons.AbstractDungeon;
import demoMod.stsconsole.helpers.DamageInfo;
import demoMod.stsconsole.monsters.AbstractMonster;

public class Sentry extends AbstractMonster {
    public static final String ID = "Sentry";

    public Sentry(boolean firstTurn) {
        super(ID);
        this.firstMove = firstTurn;
        this.setHp(38, 43);
        this.damage.add(new DamageInfo(10, this));
    }

    @Override
    protected void getMove(int aiRng) {
        if (firstMove) {
            setMove(0, Intent.DEBUFF);
            firstMove = false;
        } else {
            if (lastMove(0)) {
                setMove(1, Intent.ATTACK, this.damage.get(0));
            } else {
                setMove(0, Intent.DEBUFF);
            }
        }
    }

    @Override
    public void takeTurn() {
        switch (this.nextMove) {
            case 0:
                AbstractDungeon.player.makeTempCardsInDiscardPile(new Dazed(), 3);
                break;
            case 1:
                this.defaultTarget.damage(this.damage.get(0));
                break;
        }
        getMove(0);
    }
}
